package mju.cxf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import mju.cxf.dto.CategoriesDTO;
import mju.cxf.entity.Admin;
import mju.cxf.entity.Categories;
import mju.cxf.vo.CategoriesVO;

import java.util.List;

/**
 * <p>
 * 分类表 服务类
 * </p>
 *
 * @author 郑献
 * @since 2024-10-09
 */
public interface CategoriesService extends IService<Categories> {
    Page<CategoriesVO> selectPage(String name, Integer type, Integer state, int current, int size);

    boolean saveCategories(CategoriesDTO categories);

    boolean deleteCategories(Integer id);

    boolean updateCategories(CategoriesDTO categoriesDTO);

    boolean deleteCategorieses(List<Integer> ids);

    List<Categories> selectToChannel();
}
